/*****************************************************************************/
/*                                                                           */
/*    Domino Operation System Kernel Module                                  */
/*                                                                           */
/*    Copyright (C) 2007 Laszlo Arvai                                        */
/*                                                                           */
/*    ------------------------------------------------------------------     */
/*    krnlCharLCD.c - Character LCD display routines                         */
/*****************************************************************************/

#include "drvCharLCD.h"
#include "krnlCharLCD.h"

///////////////////////////////////////////////////////////////////////////////
// Write Const string
void lcdWriteConstString( dosByte in_x, dosByte in_y, dosConstString in_string )
{
	dosChar ch;
	
 	if( drvLCDGotoXY( in_x, in_y ) )
	{
		while( (ch = *in_string) != 0 )
		{
			if( ch >= 128 && ch < 136 )
				drvLCDWriteCharacter( ch - 128 );
			else
				drvLCDWriteCharacter( ch );
				
			in_string++;
		}
	}
}

///////////////////////////////////////////////////////////////////////////////
// Write string
void lcdWriteString( dosByte in_x, dosByte in_y, dosChar* in_string )
{
	dosChar ch;
	
	if( drvLCDGotoXY( in_x, in_y ) )
	{
		while( (ch = *in_string) != 0 )
		{
			if( ch >= 128 && ch < 136 )
				drvLCDWriteCharacter( ch - 128 );
			else
				drvLCDWriteCharacter( ch );
				
			in_string++;
		}
	}
}

